<?php if ($rating == 0):?>
	<span class="com_rating_zero">0</span>
<?php elseif ($rating > 0): ?>
	<span class="com_rating_plus">+<?=$rating?></span>
<?php else: ?>
	<span class="com_rating_minus"><?=$rating?></span>
<?php endif; ?>

<?php if (is_registered() && my_karma() >= 0 && $vote == false): ?>
	<a href="/" title="Не нравится" onClick="add_com_rating ('<?=$cid?>', 0); return false;">
		<img src="/static/images/c_bad.gif" align="absmiddle" />
	</a> 
	<a href="/" title="Нравится" onClick="add_com_rating ('<?=$cid?>', 1); return false;">
		<img src="/static/images/c_good.gif" align="absmiddle" />
	</a>
<?php else: ?>
	<img title="Не нравится" src="/static/images/c_cant_bad.gif" style="margin-right:2px" align="absmiddle" /> 
	<img title="Нравится" src="/static/images/c_cant_good.gif" align="absmiddle" />	
<?php endif; ?>
